-- GENERATED SPELL FOR [Rot Hide Mystic] --


function spell0_1773(pUnit, Event) --@Curse of Thule,Self--
pUnit:FullCastSpellOnTarget(3237,pUnit)
pUnit:RegisterEvent('Sorts_1773', 2000, 1)
end

function spell1_1773(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(332,pUnit)
pUnit:RegisterEvent('Sorts_1773', 2000, 1)
end

function Sorts_1773(pUnit, Event)
local choix_sorts_1773 = math.random(0, 1)
if choix_sorts_1773 == 0 then
pUnit:RegisterEvent('spell0_1773', 1, 1)
end
if choix_sorts_1773 == 1 then
pUnit:RegisterEvent('spell1_1773', 1, 1)
end
end

function mob1773_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1773', math.random(1500, 3000), 1)
end

function mob1773_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1773_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1773_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1773, 1, 'mob1773_Action')
RegisterUnitEvent(1773, 2, 'mob1773_Leave')
RegisterUnitEvent(1773, 3, 'mob1773_Kill')
RegisterUnitEvent(1773, 4, 'mob1773_Die')
